import dayjs from "dayjs";

export function formateDateTime(time, formate = "YYYY-MM-DD HH:mm:ss") {
  return dayjs(time).format(formate);
}

export function formateDate(time, formate = "YYYY-MM-DD") {
  return formateDateTime(time, formate);
}
